package sub;

/**
 * @program: javase
 * @description:
 * @author: lld
 * @create: 2021-06-08 20:48
 **/
public class Test {
    public static void main(String[] args) {
//        for (int i = 1; i <=100 ; i++) {
//            sum+=i;
//        }
        int sum=0;
        int n=1;
        do{
            sum+=n;
            n++;
        }while (n<=100);
        System.out.println(sum);
    }
}
